const btn = document.querySelector("button");

btn.onclick = function () {
  localStorage.setItem("name", "localStorage");
  sessionStorage.setItem("name", "sessionStorage");
};
